/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package syspizza.DAO;

import java.util.List;
import syspizza.exceptions.CampoInvalidoException;

/**
 *
 * @author computador
 */
public interface IClienteDAO<Cliente> {
    boolean insert(Cliente cliente) throws CampoInvalidoException;
    public Cliente get(int codigo);
    void delete(int codigo);
    public List<Cliente> getAll();
    public List<Cliente> getByName(String nome);
    public int getNextCodigo();
    public void update(Cliente cliente) throws CampoInvalidoException;
}
